package cn.kbyue.userapi.controller;

import io.swagger.annotations.Api;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;

/**
 * user
 *
 * @author xl
 * @date 2020/8/26 23:14
 */
@Api(tags = "user")
@RestController
public class UserController {

    @GetMapping("/info")
    public ResponseEntity<HashMap<String, String>> info() {
        HashMap<String, String> user = new HashMap<>(2);
        user.put("name", "罗小黑");
        user.put("age", "27");
        return ResponseEntity.ok().body(user);
    }

}
